package cn._51doit.flink.day02.transformations;

/**
 * 如果使用自定义的bean封装数据，如果定义了有参的构造方法，必须添加无参构造方法
 */
public class WordCount {

    private String word;

    private Integer count;

    public WordCount() {}

    public WordCount(String word, Integer count) {
        this.word = word;
        this.count = count;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "WordCount{" +
                "word='" + word + '\'' +
                ", count=" + count +
                '}';
    }
}
